package com.xmut.mall.product.controller;

import com.xmut.mall.product.service.SkuDescService;
import com.xmut.mall.product.utils.RespBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("product/skudesc")
public class SkuDescController {

    @Autowired
    private SkuDescService skuDescService;

    /**
     * 获取sku的详情大图
     * @param skuId
     * @return
     */
    @GetMapping("/getSkuDescById/{skuId}")
    public RespBean getSkuDescById(@PathVariable Long skuId){
        return skuDescService.getSkuDescById(skuId);
    }
}
